home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / netinclude / clib / serscript_protos.h < prev    next >
C/C++ Source or Header  |  2002-09-16  |  1KB  |  49 lines

  1. #ifndef CLIB_SERSCRIPT_PROTOS_H
  2. #define CLIB_SERSCRIPT_PROTOS_H
  3. /*
  4. **    $Filename: clib/serscript_protos.h $
  5. **    $Release$
  6. **    $Revision: 1.1.1.1 $
  7. **    $Date: 2001/11/26 22:21:15 $
  8. **
  9. **    C prototypes for serscript.library
  10. **
  11. **    Copyright © 1995 AmiTCP/IP Group, 
  12. **                     Network Solutions Development Inc.
  13. **                     All rights reserved.
  14. */
  15.  
  16. #ifndef LIBRARIES_SERSCRIPT_H
  17. #include <libraries/serscript.h>
  18. #endif
  19.  
  20. /* serscript.library functions */
  21.  
  22. /*
  23.  * SerScriptRun arguments:
  24.  *
  25.  * templreq - an initialized IOExtSer, which can be used to do serial IO.
  26.  *            this is used as a template for creating temporary IO requests.
  27.  *
  28.  * context  - Caller private context pointer, which is not referenced by the 
  29.  *            library, but passed to the callback when called.
  30.  *
  31.  * callback - callback for setting/getting variables and extended commands.
  32.  *            Can be NULL if not supported.
  33.  *
  34.  * script   - the name of the serial script residing in AmiTCP:adrx/ if
  35.  *            absolute path is not given.
  36.  *
  37.  * carrierdetect - sense carrier while doing serial IO.
  38.  */
  39. ULONG SerScriptRun(struct IOExtSer * templreq, void * context, 
  40.         SerScriptCallback_t callback, const UBYTE * script, LONG carrierdetect);
  41.  
  42. /*
  43.  * SerScriptStrError can be used to convert serscript.library error codes to
  44.  * english language error strings.
  45.  */
  46. const UBYTE * SerScriptStrError(ULONG error);
  47.  
  48. #endif /* CLIB_SERSCRIPT_PROTOS_H */
  49.